/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseSetting_ } from '../models/BaseSetting_';
import type { PageParam } from '../models/PageParam';
import type { Result } from '../models/Result';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class BaseSettingControllerService {

    /**
     * addSetting
     * @param baseSetting baseSetting
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static addSettingUsingPost(
baseSetting: BaseSetting_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/base-setting/add',
            body: baseSetting,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * deleteSetting
     * @param id id
     * @returns Result OK
     * @throws ApiError
     */
    public static deleteSettingUsingGet(
id?: string,
): CancelablePromise<Result> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/base-setting/delete/{id}',
            query: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * listPage
     * @param pageParam pageParam
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static listPageUsingPost(
pageParam: PageParam,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/base-setting/listPage',
            body: pageParam,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * updateSetting
     * @param baseSetting baseSetting
     * @returns Result OK
     * @returns any Created
     * @throws ApiError
     */
    public static updateSettingUsingPost(
baseSetting: BaseSetting_,
): CancelablePromise<Result | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/base-setting/update',
            body: baseSetting,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
